import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Axios from "axios";
import axios from 'axios';

//为vue的每个实例添加一个扩展属性
Vue.prototype.axios=Axios;

//为每个axios发送请求时添加一个前缀
axios.defaults.baseURL="/api";

Vue.config.productionTip = false
Vue.use(ElementUI);
new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
